// PluginCommand.cs
// 
// Copyright © 2009 FreeZzaph
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
//

using System;

namespace LibFreeZzaph
{
	
	/// <summary>
	/// Class that represents a plug-in command. Content Provider plug-ins can
	/// register these in their Initialize method.
	/// </summary>
	internal sealed class PluginCommand
	{
		private string name;
		private string description;
		private EventHandler<PluginCommandEventArgs> commandHandler;
		
		public PluginCommand(string name, string description, EventHandler<PluginCommandEventArgs> commandHandler)
		{
			this.name = name;
			this.description = description;
			this.commandHandler = commandHandler;
		}
		
		public string Name
		{
			get {
				return name;
			}
		}
		
		public string Description
		{
			get {
				return description;
			}
		}
		
		public EventHandler<PluginCommandEventArgs> CommandHandler
		{
			get
			{
				return commandHandler;
			}
		}
	}
}
